class CreateGraphics < ActiveRecord::Migration
  def self.up
    create_table :graphics do |t|
      t.column :graphicable_id,   :integer
      t.column :graphicable_type, :string
      t.column :parent_id,        :integer 
      t.column :content_type,     :string  
      t.column :filename,         :string  
      t.column :thumbnail,        :string  
      t.column :size,             :integer 
      t.column :width,            :integer 
      t.column :height,           :integer 
      t.column :created_at,       :datetime
      t.column :updated_at,       :datetime
    end
  end

  def self.down
    drop_table :graphics
  end
end
